home *** CD-ROM | disk | FTP | other *** search
/ MacFormat España 24 / MacFormat n. 24 (Spain) / MacFormat 24.bin / Demos / Jungle Activated! / JungleActivated Demo / jung DEMO d / 00187_Juke Box- Go to.ls < prev    next >
Encoding:
Text File  |  1996-10-14  |  827 b   |  34 lines

  1. on mouseUp
  2.   global gWhereFrom, gFragment1, gFragment2, gFragment3, gFragment4, gFragmentCast, gBackgroundSound
  3.   cursor(-1)
  4.   repeat with i = 1 to 48
  5.     puppetSprite(i, 0)
  6.   end repeat
  7.   set gWhereFrom to the frameLabel
  8.   set GameOver to 0
  9.   if gFragment1 = 1 then
  10.     if gFragment2 = 1 then
  11.       if gFragment3 = 1 then
  12.         if gFragment4 = 1 then
  13.           set GameOver to 1
  14.           if gBackgroundSound < 20 then
  15.             go("Juke Box 2")
  16.           end if
  17.           if gBackgroundSound > 19 then
  18.             go(label("K" & gBackgroundSound))
  19.           end if
  20.         end if
  21.       end if
  22.     end if
  23.   end if
  24.   if GameOver = 0 then
  25.     if gBackgroundSound < 20 then
  26.       sound stop 2
  27.       go("Juke Box 1")
  28.     end if
  29.     if gBackgroundSound > 19 then
  30.       go(label("J" & gBackgroundSound))
  31.     end if
  32.   end if
  33. end
  34.